/***
 * R-ZBZB-202109280789713：添加下载图标，增加下载列表页面
 */
import request from "@/utils/request";
export const service = () => {
  return !!JSON.parse(localStorage.$loginInfo).tenantId ? "/event" : "/ttevent";
};
export const video = () => {
  return !!JSON.parse(localStorage.$loginInfo).tenantId
    ? "/video-stdu"
    : "/ttvideo";
};
export const videoTransfer = () => {
  return !!JSON.parse(localStorage.$loginInfo).tenantId
    ? "/video-stdu"
    : "/ttvideo";
};
// '/system/getEnumInfo'
export function getEnumInfo(query) {
  return request({
    url: "/admin/base/system/dict/data/dictType/" + query.enumTypeId,
    method: "get",
  });
}
// '/video/getVideoRealtimeUrl'
export function getVideoRealtimeUrl(query) {
  return request({
    url: videoTransfer() + "/video/player/getVideoRealtimeUrl",
    method: "post",
    data: query,
  });
}
